import request from '@/utils/request'

export function getTreeList(data) {
  return request({
    url: '/dataDictoryCatalog/getTreeList',
    method: 'post',
    params: data
  })
}

export function saveData(data) {
  return request({
    url: '/dataDictoryCatalog/save',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/dataDictoryCatalog/edit',
    method: 'post',
    data
  })
}

export function disabled(data) {
  return request({
    url: '/dataDictoryCatalog/delete',
    method: 'post',
    params: data
  })
}

export function getInfo(data) {
  return request({
    url: '/dataDictoryCatalog/getInfo',
    method: 'get',
    params: data
  })
}

export function getAllLeafNode(data) {
  return request({
    url: '/dataDictoryCatalog/getAllLeafNode',
    method: 'get',
    params: data
  })
}

export function getInitialLoading(data) {
  return request({
    url: '/dataDictoryCatalog/getInitialLoading',
    method: 'post',
    params: data
  })
}

export function getAgainLoading(data) {
  return request({
    url: '/dataDictoryCatalog/getAgainLoading',
    method: 'post',
    params: data
  })
}
